package com.fc.mall.decoration.widget.object;

/**
 * Created by asus on 2019/5/8.
 */

import com.fc.mall.decoration.widget.object.product.ProductRelatedBean;
import com.fc.mall.decoration.widget.object.promotion.PromotionRelatedBean;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.Data;

@Data
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "beanType", visible = true)
@JsonSubTypes({@JsonSubTypes.Type(value = PromotionRelatedBean.class, name = "3"),
        @JsonSubTypes.Type(value = ProductRelatedBean.class, name = "1")
})
public abstract class RelatedBean {
    private String beanType;
}
